package com.wyz.note.basics.chain;

/**
 * @Description: 上经理处理类
 * @author: wei yz
 * @Date: 2024/8/4 11:27
 */
public class Manager extends LeaveRequestHandler{

    @Override
    public void handleRequest(int days) {
        if (days <= 3) {
            System.out.println(String.format("经理批准休假：%s 天",days));
        } else if (successor != null) {
            successor.handleRequest(days);
        }
    }
}
